<?php
/**
 * @version		0.2.0 joomla zmluvy $
 * @package		com_zjmluvy
 * @copyright	Copyright © 2011 - All rights reserved.
 * @license		GNU/GPL
 * @author    AdrianKo		
 * @website   http://code.google.com/p/joomla-zmluvy
 *
 *
 *1.3.2012
 */

// no direct access
defined('_JEXEC') or die('Restricted access');

jimport( 'joomla.application.component.view' );
jimport( 'joomla.filesystem.file' );


class jzmluvyViewNastaveni extends Jview
{
	function display($tpl = null)
  {
    global $mainframe, $option;

		$db				=& JFactory::getDBO();
		$user 		= & JFactory::getUser();
		$params	= &JComponentHelper::getParams('com_jzmluvy');
    
   
    // nahratie submenu
    require (JPATH_COMPONENT_ADMINISTRATOR.DS.'admin.submenu.php');

    $model		= & $this->getModel();
		$item     = & $this->get( 'Data');

    // globalne nastavenia
    $kontakty[] = JHTML::_('select.option',  0 , JText::_( 'VYBER_NIE' ));
		$kontakty[] = JHTML::_('select.option',  1 , JText::_( 'VYBER_ANO' ));
    $lists['kontakty'] = JHTML::_('select.genericlist', $kontakty, 'kontakty', 'class="inputbox" size="1"', 'value', 'text', $item->kontakty );
    
    $kontakty_link[] = JHTML::_('select.option',  0 , JText::_( 'VYBER_NIE' ));
		$kontakty_link[] = JHTML::_('select.option',  1 , JText::_( 'VYBER_ANO' ));
    $lists['kontakty_link'] = JHTML::_('select.genericlist', $kontakty_link, 'kontakty_link', 'class="inputbox" size="1"', 'value', 'text', $item->kontakty_link );
    
    $dph[] = JHTML::_('select.option',  0 , JText::_( 'VYBER_NIE' ));
		$dph[] = JHTML::_('select.option',  1 , JText::_( 'VYBER_ANO' ));
    $lists['dph'] = JHTML::_('select.genericlist', $dph, 'dph', 'class="inputbox" size="1"', 'value', 'text', $item->dph );
    
    $subory[] = JHTML::_('select.option',  0 , JText::_( 'VYBER_NIE' ));
		$subory[] = JHTML::_('select.option',  1 , JText::_( 'VYBER_ANO' ));
    $lists['subory'] = JHTML::_('select.genericlist', $subory, 'subory', 'class="inputbox" size="1"', 'value', 'text', $item->subory );    

    $crz[] = JHTML::_('select.option',  0 , JText::_( 'VYBER_NIE' ));
		$crz[] = JHTML::_('select.option',  1 , JText::_( 'VYBER_ANO' ));
    $lists['crz'] = JHTML::_('select.genericlist', $crz, 'crz', 'class="inputbox" size="1"', 'value', 'text', $item->crz );    
/* 23.2.2012 nepouziva sa    
    $crz_link[] = JHTML::_('select.option',  0 , JText::_( 'VYBER_NIE' ));
		$crz_link[] = JHTML::_('select.option',  1 , JText::_( 'VYBER_ANO' ));
    $lists['crz_link'] = JHTML::_('select.genericlist', $crz_link, 'crz_link', 'class="inputbox" size="1"', 'value', 'text', $item->crz_link );    
*/    
    $debug[] = JHTML::_('select.option',  0 , JText::_( 'VYBER_NIE' ));
		$debug[] = JHTML::_('select.option',  1 , JText::_( 'VYBER_ANO' ));
    $lists['debug'] = JHTML::_('select.genericlist', $debug, 'debug', 'class="inputbox" size="1"', 'value', 'text', $item->debug );                    
    
    // objednavky
    $obj_dat_plnenia[] = JHTML::_('select.option',  0 , JText::_( 'VYBER_NIE' ));
		$obj_dat_plnenia[] = JHTML::_('select.option',  1 , JText::_( 'VYBER_ANO' ));
    $lists['obj_dat_plnenia'] = JHTML::_('select.genericlist', $obj_dat_plnenia, 'obj_dat_plnenia', 'class="inputbox" size="1"', 'value', 'text', $item->obj_dat_plnenia );
     
    // faktury 
    $fak_int_cislo[] = JHTML::_('select.option',  0 , JText::_( 'VYBER_NIE' ));
		$fak_int_cislo[] = JHTML::_('select.option',  1 , JText::_( 'VYBER_ANO' ));
    $lists['fak_int_cislo'] = JHTML::_('select.genericlist', $fak_int_cislo, 'fak_int_cislo', 'class="inputbox" size="1"', 'value', 'text', $item->fak_int_cislo );
    
    $fak_dat_platnosti[] = JHTML::_('select.option',  0 , JText::_( 'VYBER_NIE' ));
		$fak_dat_platnosti[] = JHTML::_('select.option',  1 , JText::_( 'VYBER_ANO' ));
    $lists['fak_dat_platnosti'] = JHTML::_('select.genericlist', $fak_dat_platnosti, 'fak_dat_platnosti', 'class="inputbox" size="1"', 'value', 'text', $item->fak_dat_platnosti );

    $fak_dat_uhrady[] = JHTML::_('select.option',  0 , JText::_( 'VYBER_NIE' ));
		$fak_dat_uhrady[] = JHTML::_('select.option',  1 , JText::_( 'VYBER_ANO' ));
    $lists['fak_dat_uhrady'] = JHTML::_('select.genericlist', $fak_dat_uhrady, 'fak_dat_uhrady', 'class="inputbox" size="1"', 'value', 'text', $item->fak_dat_uhrady );   
    
    // zmluvy
    $zml_dat_podpisu[] = JHTML::_('select.option',  0 , JText::_( 'VYBER_NIE' ));
		$zml_dat_podpisu[] = JHTML::_('select.option',  1 , JText::_( 'VYBER_ANO' ));
    $lists['zml_dat_podpisu'] = JHTML::_('select.genericlist', $zml_dat_podpisu, 'zml_dat_podpisu', 'class="inputbox" size="1"', 'value', 'text', $item->zml_dat_podpisu );    
    
    $zml_dat_platnosti[] = JHTML::_('select.option',  0 , JText::_( 'VYBER_NIE' ));
		$zml_dat_platnosti[] = JHTML::_('select.option',  1 , JText::_( 'VYBER_ANO' ));
    $lists['zml_dat_platnosti'] = JHTML::_('select.genericlist', $zml_dat_platnosti, 'zml_dat_platnosti', 'class="inputbox" size="1"', 'value', 'text', $item->zml_dat_platnosti );    
     
    $zml_dat_ucinnosti[] = JHTML::_('select.option',  0 , JText::_( 'VYBER_NIE' ));
		$zml_dat_ucinnosti[] = JHTML::_('select.option',  1 , JText::_( 'VYBER_ANO' ));
    $lists['zml_dat_ucinnosti'] = JHTML::_('select.genericlist', $zml_dat_ucinnosti, 'zml_dat_ucinnosti', 'class="inputbox" size="1"', 'value', 'text', $item->zml_dat_ucinnosti );    

    // partner
    $partner_spis_znacka[] = JHTML::_('select.option',  0 , JText::_( 'VYBER_NIE' ));
		$partner_spis_znacka[] = JHTML::_('select.option',  1 , JText::_( 'VYBER_ANO' ));
    $lists['partner_spis_znacka'] = JHTML::_('select.genericlist', $partner_spis_znacka, 'partner_spis_znacka', 'class="inputbox" size="1"', 'value', 'text', $item->partner_spis_znacka );    

    $partner_logo[] = JHTML::_('select.option',  0 , JText::_( 'VYBER_NIE' ));
		$partner_logo[] = JHTML::_('select.option',  1 , JText::_( 'VYBER_ANO' ));
    $lists['partner_logo'] = JHTML::_('select.genericlist', $partner_logo, 'partner_logo', 'class="inputbox" size="1"', 'value', 'text', $item->partner_logo );    

    $partner_dic[] = JHTML::_('select.option',  0 , JText::_( 'VYBER_NIE' ));
		$partner_dic[] = JHTML::_('select.option',  1 , JText::_( 'VYBER_ANO' ));
    $lists['partner_dic'] = JHTML::_('select.genericlist', $partner_dic, 'partner_dic', 'class="inputbox" size="1"', 'value', 'text', $item->partner_dic );        

    $partner_pocet_obj[] = JHTML::_('select.option',  0 , JText::_( 'VYBER_NIE' ));
		$partner_pocet_obj[] = JHTML::_('select.option',  1 , JText::_( 'VYBER_ANO' ));
    $lists['partner_pocet_obj'] = JHTML::_('select.genericlist', $partner_pocet_obj, 'partner_pocet_obj', 'class="inputbox" size="1"', 'value', 'text', $item->partner_pocet_obj );

 		$this->assignRef('item', $item);
    $this->assignRef('lists', $lists);
    
		parent::display($tpl);
	}
}
?>
